package com.serverdemo.application.boot;

import com.serverdemo.application.db.DBProcessor;
import com.serverdemo.application.login.LoginProcessor;
import com.serverdemo.application.scene.SceneProcessor;
import com.serverdemo.application.world.WorldProcessor;
import com.serverdemo.core.net.NettyServer;
import com.serverdemo.core.processor.ProcessorManager;

/**
 * Created by wangqiang on 2020/4/9.
 */
public class Main
{
    public static void main(String args[])
    {
        ProcessorManager.getInstance().initProcessorPool();
        ProcessorManager.getInstance().setLoginProcessor(new LoginProcessor());
        ProcessorManager.getInstance().setWorldProcessor(new WorldProcessor());
        ProcessorManager.getInstance().setSceneProcessor(new SceneProcessor());
        ProcessorManager.getInstance().setDbProcessor(new DBProcessor());

        NettyServer nettyServer = new NettyServer();
        nettyServer.boot();
    }
}
